#include <iostream>
#include <stdlib.h>
using namespace std;
template<typename T>

T max(T a ,T b,T c)
{
    if(b>a)a=b;
    if(c>a)a=c;
    return c;
}

int main(){
    int a=1,b=2,c=3,i;
    double n=1.1,e=1.2,f=1.3,d;
    long g=12,h=23,m=34,l;
    i=max(a,b,c);
    d=max(n,e,f);
    l=max(g,h,m);
    cout<<"i_max=:"<<i<<endl;
    cout<<"d_max=:"<<d<<endl;
    cout<<"l_max=:"<<l<<endl;
    system("pause");
    return 0;
}